package io.renren.modules.workflow.enums;
/**
 * @Desc: 流程部署状态枚举
 * @auther: landlord
 * @date: 2021/7/26 13:01
 * @return:
 */
public enum ActBusDeployStatusEnum {
    YES("yes", "已部署"),NO("no", "未部署");
    // 成员变量
    private String key;
    private String value;
    // 构造方法
    private ActBusDeployStatusEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    // 普通方法
    public static String getName(String key) {
        for (ActBusDeployStatusEnum fs : ActBusDeployStatusEnum.values()) {
            if (fs.getKey().equalsIgnoreCase(key)) {
                return fs.value;
            }
        }
        return null;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
